<!--实习记录窗口-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>我的竞赛</title>
		<link rel="stylesheet" href="../../css/base.css">
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar">
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="title">我的竞赛</span>
			<a class="base_right_item base_hide_item"> </a>
		</div>
	</body>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript">
		apiready = function() {
			setupSubframe();
		}
		function backClick1() {
			api.closeWin({
			});
		}

		function setupSubframe() {
			var y = $('.base_navigation_bar').height() + 22;
		   var type = api.pageParam.type;
		   var url_xue="http://m.xueba.cfnet.org.cn/index.php/match/study/cfstars?"
		   if( type ==1){//竞赛
		    $('#title').html("我的竞赛");
			var url_Competition = isfreelogin(1, url_XueBaminefootprint);
			} else if( type ==2){//长风之星
			$('#title').html("长风之星");
//			alert(isfreelogin(1, url_xue));
			var url_Competition = isfreelogin(1, url_xue);
			}else{
			$('#title').html("我的竞赛");
			var url_Competition = isfreelogin(1, url_XueBaminefootprint);
			}
			//			alert(url_Competition);
			api.openFrame({
				name : 'mycompetition',
				url : url_Competition,
				rect : {
					x : 0,
					y : y,
					w : 'auto',
					h : 'auto'
				},
				bounces : false,
				vScrollBarEnabled : true,
				hScrollBarEnabled : false,
				progress : {//设置进度条类型和样式
					type : 'page',
					color : '#18b4ed'
				}
			});
		}

		function backClick() {
			api.historyBack({
				frameName : 'mycompetition'
			}, function(ret, err) {
				if (!ret.status) {
					backClick1();
				}
			});
		}
	</script>
</html>